package com.gxa.pojo;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;


//  角色实体
public class Role {


  @ApiModelProperty(name = "role_id",notes ="角色编号" ,dataType = "Integer")
  private Integer role_id;
  @ApiModelProperty(name = "role_name",notes ="角色名称" ,dataType = "String")
  private String role_name;
  @ApiModelProperty(name = "employee_name",notes ="员工姓名" ,dataType = "String")
  private String employee_name;
  @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
  private Date create_time;
  @ApiModelProperty(name = "role_state",notes ="角色状态，1正常2删除或者无改角色 " ,dataType = "String")
  private Integer role_state;
  private List<Anthority> anthority;//所有权限

  public Integer getRole_id() {
    return role_id;
  }

  public void setRole_id(Integer role_id) {
    this.role_id = role_id;
  }

  public String getRole_name() {
    return role_name;
  }

  public void setRole_name(String role_name) {
    this.role_name = role_name;
  }

  public String getEmployee_name() {
    return employee_name;
  }

  public void setEmployee_name(String employee_name) {
    this.employee_name = employee_name;
  }

  public Date getCreate_time() {
    return create_time;
  }

  public void setCreate_time(Date create_time) {
    this.create_time = create_time;
  }



  public Integer getRole_state() {
    return role_state;
  }

  public void setRole_state(Integer role_state) {
    this.role_state = role_state;
  }

  public List<Anthority> getAnthority() {
    return anthority;
  }

  public void setAnthority(List<Anthority> anthority) {
    this.anthority = anthority;
  }
}
